package com.wzl.jdbc.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzl.jdbc.entity.TUser;
import com.wzl.jdbc.mapper.TUserMapper;
import com.wzl.jdbc.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author ACGkaka
 * @since 2021-04-25
 */
@Service
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements TUserService {

    @Autowired
    private TUserMapper tUserMapper;

    /**
     * 根据用户id查询用户信息
     */
    @Override
    public TUser getUserByNumber(Integer number) {
        TUser user = tUserMapper.selectByNumber(number);
        return user;
    }

    @Override
    public TUser getUserById(Integer id) {
        return tUserMapper.selectById(id);
    }

    @Override
    public List<TUser> getUserBetween(Integer numberStart, Integer numberEnd) {
        return tUserMapper.getUserBetween(numberStart, numberEnd);
    }

    @Override
    public List<TUser> selectList(Object o) {
        return tUserMapper.selectList(null);
    }


}
